home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NT Sources
/
Infomagic - NT Source Volume 1 (Disc 1 of 2).iso
/
network
/
pcdctrla.exe
/
PCDCTRL.EXE
/
INSTOS2.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-01-23
|
3KB
|
88 lines
@echo off
cls
set d=C:\PCDUO
if not "%1" == "" set d=%1
echo *------------------------------------------------------------------------------
echo * NetSupport PC-Duo OS/2 Client Installation
echo * Copyright (c) 1997 PCI, Vector Networks Limited
echo *------------------------------------------------------------------------------
echo *
echo * This will install the OS/2 client into directory %d%.
echo * To install onto a different drive or directory, type (for example):
echo * INSTOS2 D:\PCDUO
echo.
echo * To install the complete PC-Duo package (including the Control program),
echo * run SETUP.EXE from Disk-1 in a Win-OS/2 session.
echo *
echo * Press any key to continue or Ctrl+C to abort:
pause>nul
echo.
if exist pmexpand.exe if exist pmclient.ex_ goto disk_ok
echo *
echo * This is not a valid OS/2 Client installation disk.
goto error
:disk_ok
if exist %d%\*.* goto dir_ok
echo * Creating directory %d%
md %d%
:dir_ok
echo * Copying programs to %d%...
echo * PMEXPAND.EXE
copy pmexpand.exe %d%
if not exist %d%\pmexpand.exe goto error
%d%\pmexpand ipbrpm.dl_ %d%\ipbrpm.dll
if errorlevel 1 goto error
%d%\pmexpand ipstlpm.dl_ %d%\ipstlpm.dll
if errorlevel 1 goto error
%d%\pmexpand nbbrpm.dl_ %d%\nbbrpm.dll
if errorlevel 1 goto error
%d%\pmexpand nbstlpm.dl_ %d%\nbstlpm.dll
if errorlevel 1 goto error
%d%\pmexpand pcihook.dl_ %d%\pcihook.dll
if errorlevel 1 goto error
%d%\pmexpand pcipdd.sy_ %d%\pcipdd.sys
if errorlevel 1 goto error
%d%\pmexpand pmclient.ex_ %d%\pmclient.exe
if errorlevel 1 goto error
%d%\pmexpand pmconfig.ex_ %d%\pmconfig.exe
if errorlevel 1 goto error
%d%\pmexpand pmconfig.ms_ %d%\pmconfig.msg
if errorlevel 1 goto error
%d%\pmexpand pmsleep.ex_ %d%\pmsleep.exe
if errorlevel 1 goto error
%d%\pmexpand tcstlpm.dl_ %d%\tcstlpm.dll
if errorlevel 1 goto error
if exist control.md_ %d%\pmexpand control.md_ %d%\control.mdm
if errorlevel 1 goto error
if exist readme.os2 copy readme.os2 %d%
if exist client.ser copy client.ser %d%
echo *
echo * Configuring OS/2 to load the OS/2 Client.
echo *
:pmconfig
%d%\pmconfig /i
if errorlevel 1 goto error
:done
echo *
echo * Installation complete.
echo *
echo * Please consult file README.OS2 for late-breaking changes.
goto end
:error
echo *------------------------------------------------------------------------------
echo ERROR: Installation failed.
:end
echo *------------------------------------------------------------------------------